package com.zyx.eduorder.client;

import com.zyx.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zyx
 * @version 1.0
 * @date 2022/1/10 010 13:04
 */
@Component
@FeignClient("service-edu")
public interface EduClient {

    /**
     * 根据id查询课程信息
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
